ClaimPathElement

sealed interface ClaimPathElement(source)

Elements of a ClaimPath

  • Claim indicates that the respective key is to be selected

  • AllArrayElements indicates that all elements of the currently selected array(s) are to be selected, and

  • ArrayElement indicates that the respective index in an array is to be selected

Inheritors

Types

Link copied to clipboard

Indicates that all elements of the currently selected array(s) are to be selected It is serialized as a JsonNull

Link copied to clipboard
value class ArrayElement(val index: Int) : ClaimPathElement

Indicates that the respective index in an array is to be selected. It is serialized as an integer

Link copied to clipboard
value class Claim(val name: String) : ClaimPathElement

Indicates that the respective key is to be selected. It is serialized as a string

Functions

Link copied to clipboard
open operator fun contains(that: ClaimPathElement): Boolean

Indication of whether the current instance contains the other.

Link copied to clipboard
inline fun <T> ClaimPathElement.fold(ifAllArrayElements: () -> T, ifArrayElement: (Int) -> T, ifClaim: (String) -> T): T